package itheima.edu.info.Exdents.intends;

import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

import static java.time.LocalDateTime.now;

public class Date03 {
    public static void main(String[] args) {
        String a ="2020年11月11日 11:56:54";
        DateTimeFormatter op=DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH:mm:ss");
        LocalDateTime orrr=LocalDateTime.parse(a,op);
        System.out.println(orrr);
        /*Date b =new Date();
        String format = orrr.format(b, op);
        System.out.println(format);*/

        System.out.println(LocalDateTime.now());


        // LocalDateTime localDateTime=LocalDateTime.of(2002,11,11,11,11,1,11);
              // SimpleDateFormat simpleDateFormat=new SimpleDateFormat();
        /*SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");
        Date d=new Date();
        String s = sdf.format(d);
        System.out.println(s);*/
    }
}
